.customization {
  .templates {
    margin-top: 10px;
    .scrollWraper {
      display: flex;
      width: 100%;
      height: 225px;
      overflow-x: auto;
      overflow-y: hidden;
      flex-wrap: nowrap;
      padding-bottom: 10px;
      scroll-behavior: smooth;

      .templateItem {
        box-shadow: 0 0 4px rgba($color: #000, $alpha: 20%);
        cursor: pointer;
        margin: 5px;
        flex: 0 0 147px;
        height: 205px;
        position: relative;
        background-size: cover;

        img {
          position: absolute;
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }

      .selected {
        border: 2px solid #c8c8c8;
      }
    }
  }

  .layout {
    margin-top: 20px;
    .headPosition {
      display: flex;
      font-size: 14px;
      margin-bottom: 10px;
      justify-content: space-between;
    }
    .layoutTypes {
      width: 50px;
      height: 50px;
      border: 1px solid #ccc;
      border-radius: 10px;
      overflow: hidden;
      margin: 10px;
      display: inline-block;
      cursor: pointer;
      position: relative;

      &::after {
        display: inline-block;
        position: absolute;
        content: "";
        background: rgb(187 187 187);
      }

      &.active {
        border: 1px solid rgb(88 56 231);
        background-color: #9fa9f94d;

        &::after {
          background: rgb(88 56 231);
        }
      }

      &.top {
        &::after {
          width: 100%;
          height: 50%;
          top: 0;
          left: 0;
        }
      }

      &.left {
        &::after {
          width: 50%;
          height: 100%;
          top: 0;
          left: 0;
        }
      }

      &.right {
        &::after {
          width: 50%;
          height: 100%;
          top: 0;
          right: 0;
        }
      }
    }

    .columns {
      display: flex;
      gap: 10px;
      color: rgb(187 187 187);

      // margin-left: 10px;

      .columnItem {
        cursor: pointer;
        padding: 6px 20px;
        border: 1px solid rgb(186 186 186);
        border-radius: 10px;
      }

      .active {
        &.columnItem {
          border: 1px solid rgb(75 85 220);
          background: #9fa9f94d;
        }

        rect {
          stroke: rgb(75 85 220);
          fill: rgb(75 85 220);
        }
      }

      svg {
        float: left;
        width: 30px;
      }
    }

    .columnWidth {
      display: flex;
      gap: 10px;

      .column {
        flex: 1;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 10px;
        text-align: center;
        cursor: pointer;
        user-select: none;
      }
    }
  }

  .spacing {
    margin-top: 20px;
  }

  // .colors {
  //   margin-top: 20px;
  //   position: relative;
  //   user-select: none;

  //   .colorBodyWrapper {
  //     display: flex;
  //     gap: 20px;
  //     width: 100%;
  //     max-width: 500px;

  //     .direction {
  //       font-size: 16px;
  //       margin-top: 20px;
  //       font-weight: bold;
  //     }
  //   }

  //   .colorBody {
  //     display: flex;
  //     justify-content: space-between;
  //     gap: 10px;
  //     margin-bottom: 30px;
  //     width: 100%;

  //     .colorItem {
  //       font-size: 13px;
  //       display: flex;
  //       flex-direction: column;
  //       gap: 10px;
  //       justify-content: center;
  //       align-items: center;
  //       font-weight: 500;
  //     }
  //   }
  // }

  // .color {
  //   background: #fff;
  //   box-shadow: 0 0 2px 2px rgb(91 91 91 / 10%);
  //   border: 1px solid #dcdbdb;
  //   display: inline-block;
  //   cursor: pointer;
  //   width: 36px;
  //   height: 30px;
  //   border-radius: 10px;
  // }

  // .popover {
  //   position: absolute;
  //   z-index: 2;
  // }

  .cover {
    position: fixed;
    inset: 0;
  }

  .header {
    margin-top: 20px;
    position: relative;

    .columns {
      display: flex;
      color: rgb(187 187 187);

      // margin-left: 10px;
      max-width: 500px;
      justify-content: space-between;

      .columnItem {
        cursor: pointer;
        padding: 6px 10px;
        border: 1px solid rgb(186 186 186);
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        max-width: 100px;
      }

      .active {
        &.columnItem {
          border: 1px solid rgb(75 85 220);
          background: #9fa9f94d;
          color: rgb(75 85 220);
        }

        rect {
          stroke: rgb(75 85 220);
          fill: rgb(75 85 220);
        }
      }

      svg {
        float: left;
        width: 40px;
      }

      &.details {
        gap: 10px;
        flex-wrap: wrap;

        .columnItem {
          cursor: pointer;
          padding: 6px 10px;
          border-radius: 10px;
          display: flex;
          align-items: center;
        }

        svg {
          float: left;
          height: 18px;
          width: auto;
        }
      }
    }

    .photo {
      margin-top: 30px;

      .photoShape {
        border: 1px solid rgb(186 186 186);
        border-radius: 10px;
        margin-right: 30px;
        cursor: pointer;

        &.active {
          border: 1px solid rgb(75 85 220);
          background: #9fa9f94d;
          color: rgb(75 85 220);
        }
      }

      .portrait {
        height: 70px;
        width: 50px;
      }

      .square {
        height: 50px;
        width: 50px;
      }

      .round {
        height: 50px;
        width: 50px;
        border-radius: 50%;
      }

      .size {
        border: 1px solid rgb(186 186 186);
        border-radius: 10px;
        margin-right: 30px;
        height: 40px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        cursor: pointer;

        &.active {
          border: 1px solid rgb(75 85 220);
          background: #9fa9f94d;
          color: rgb(75 85 220);
        }
      }
    }
  }

  .module {
    margin-top: 20px;
    position: relative;

    .title {
      .columns {
        display: grid;
        color: rgb(187 187 187);
        max-width: 500px;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 10px;

        .item {
          cursor: pointer;
          height: 37px;

          // padding: 6px 10px;
          border: 1px solid rgb(186 186 186);
          border-radius: 10px;
          display: flex;
          justify-content: center;
          align-items: center;
          flex: 1;
          max-width: 100px;
          min-width: 100px;
          color: rgb(187 187 187 / 100%);

          svg {
            height: 100%;
            width: 100%;
          }
        }

        .active {
          &.item {
            border: 1px solid rgb(75 85 220);
            background: #9fa9f94d;
            color: rgb(75 85 220);
          }
        }
      }
    }
  }

  :global {
    .ant-radio-checked .ant-radio-inner {
      background-color: rgb(75 85 220) !important;
      border-color: rgb(75 85 220) !important;
    }

    .ant-radio-wrapper .ant-radio-inner {
      width: 20px;
      height: 20px;
    }
  }

  @media screen and (width <= 800px) {
    .templates {
      margin-top: 0;
    }
  }
}
